// 题23
function Test23() {
	async function async1() {
		await async2();
		console.log('async1');
		return 'async1 success';
	}
	async function async2() {
		return new Promise((resolve, reject) => {
			console.log('async2');
			reject('error');
		});
	}
	async1().then((res) => console.log(res));
}
Test23()
// 结果：
// async2
// Uncaught (in promise) error
/**
 * 解析：async函数抛出错误，不会继续往下执行，可以用catch捕获错误
 */